#pragma once
#include "main.h"
#include "KalmanTracker.h"
#include "Hungarian.h"
using namespace std;

extern int idxShowImage;
extern mutex mtxQueueShow;
extern priority_queue<imageout_idx, vector<imageout_idx>, paircomp> queueShow;  // display queue 目标追踪输入队列
extern mutex mtxQueueOutput;
extern queue<Mat> queueOutput;  // 目标追踪输出队列
extern int Frame_cnt;
extern bool bDetecting;     // 目标检测进程状态
extern double Time_video;  // 整个视频追踪所花的时间


extern double what_time_is_it_now();

double box_iou(cv::Rect_<float> bb_test, cv::Rect_<float> bb_gt);
void track_process(int id);
